const { Schema, SchemaTypes } = require('../schema');
class Collection extends Schema {
    PropertyModelDataTemplate () {
        return {
            areaId: { type: SchemaTypes.ObjectId, required: true },
            userId: { type: SchemaTypes.ObjectId, required: true },
            productId: { type: SchemaTypes.ObjectId, required: true },
            createTime: { type: SchemaTypes.Number, required: true, default: require('../../module/tool/time').getCurrentTimestamp() }
        };
    }
}

module.exports = Collection;
